/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.dinner.entity.recharge;

import com.thinkgem.jeesite.common.persistence.DataEntity;
import com.thinkgem.jeesite.modules.sys.entity.User;

import javax.validation.constraints.NotNull;

/**
 * 充值Entity
 * @author dai
 * @version 2018-11-18
 */
public class ResRecharge extends DataEntity<ResRecharge> {

	private static final long serialVersionUID = 1L;
	private User user;		// 用户
	private Double rechargeAmount;		// 充值金额

	public ResRecharge() {
		super();
	}

	public ResRecharge(String id){
		super(id);
	}

	@NotNull(message="用户不能为空")
	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
	
	@NotNull(message="充值金额不能为空")
	public Double getRechargeAmount() {
		return rechargeAmount;
	}

	public void setRechargeAmount(Double rechargeAmount) {
		this.rechargeAmount = rechargeAmount;
	}

}